#ifndef BOARD_H
#define BOARD_H

#include <QWidget>
#include"qizi.h"

class Board : public QWidget
{
    Q_OBJECT
public:
    explicit Board(QWidget *parent = nullptr);
    ~Board();
    qizi _s[32];
    int _r;
    int _selectid;
    QPoint center(int row,int col);//返回象棋行列对应的像素坐标
    QPoint center(int id);
    bool getRowCol(QPoint pt,int &row,int &col);

    void drawqizi(QPainter& painter,int id);
    void paintEvent(QPaintEvent *);
    void mouseReleaseEvent(QMouseEvent *);

signals:

public slots:
};

#endif // BOARD_H
